package edu.vt.ece.rt.quorum.tree;

import java.util.concurrent.atomic.AtomicBoolean;

import org.jgroups.Address;

public class Node {
	public Address address;
	public AtomicBoolean access;
	public Object val;
	
	public Node(Address addr) {
		address = addr;
		access = new AtomicBoolean(true);		
	}
	
	/**
	 * @param i
	 */
	public Node(Object o) {
		val = o;
		access = new AtomicBoolean(true);	
	}

	public boolean isRunning() {
//		return access.get();
		return true;
	}

	public void setAccess(boolean ac){
		access.set(ac);
	}
}
	
	
